import request from '@/utils/request'

//货物详情
export function ListGoodsDetails(data, params) {
  return request({
    url: '/storage/hwdb/cargoDetails',
    method: 'post',
    data: data,
    params:params
  })
}

//担保金额
export function listGuaranteePrice(data) {
  return request({
    url: `/storage/hwdb/guaranteedAmount/${data.aid}`,
    method: 'post',
    data: {}
  })
}

//担保金额修改
export function modifyGuaranteedAmount(data) {
  return request({
    url: `/storage/hwdb/modifyGuaranteedAmount`,
    method: 'post',
    data: data
  })
}


// 货物担保
export function ListStorageGuarantee(data, params) {
  return request({
    url: '/storage/hwdb/list',
    method: 'post',
    data: data,
    params:params
  })
}

//获取估价货物详情
export function listGoodsDetails1(data,params) {
  return request({
    url: '/storage/hwdb/cargoDetails1',
    method: 'post',
    data: data,
    params:params
  })
}

//设置估价列表
export function setUpAnEstimate(data, params) {
  return request({
    url: '/storage/hwdb/setUpAnEstimate',
    method: 'post',
    data: data,
    params:params
  })
}

//单独修改估价列表
export function toValuationRevision(data) {
  return request({
    url: '/storage/hwdb/toValuationRevision',
    method: 'post',
    data: data
  })
}

//设置估价批量/单独修改
export function valuationRevision(data) {
  return request({
    url: '/storage/hwdb/valuationRevision',
    method: 'post',
    data: data
  })
}

//货物详情录入
export function goodsDetailsInput(data) {
  return request({
    url: '/storage/hwdb/input',
    method: 'post',
    data: data
  })
}

//货物详情单独修改
export function valuationRevision1(data) {
  return request({
    url: '/storage/hwdb/valuationRevision1',
    method: 'post',
    data: data
  })
}

//货物详情批量录出
export function valuationgoodsDetailsExport(data) {
  return request({
    url: '/storage/hwdb/record',
    method: 'post',
    data: data
  })
}







